#ifndef LISTTITLE_H_
#define LISTTITLE_H_

#include <QGraphicsWidget>
#include <QString>

#include "themedatastorage.h"

class ListTitle : public QGraphicsWidget
{
public:
    ListTitle(QGraphicsItem * parent, const ThemeData &themeData);
    void setText(QString const & newText) { text = newText; }
    
public: // QGraphicsWidget overrides
    virtual void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0);
    
private:
    const ThemeData &themeData;
    QString text;
};

#endif /* LISTTITLE_H_ */
